create index ix_ConnectHistory_1 on ConnectHistory (DatabaseID, Connect_SPID)
create index ix_ConnectHistory_2 on ConnectHistory (SessionID)